#define _CRT_SECURE_NO_WARNINGS
#include <string.h>
#include <stdio.h>
#include <assert.h>


int my_strlen(char* p)
{
	int count = 0;
	assert(p);
	while (*p != '\0')
	{
		p++;
		count++;
	}
	return count;
}

void my_strcpy(char* arr, char* p)
{
	int i = 0;
	while (*p)
	{
		*arr = *p;
		p++;
		arr++;
	}
	*arr = *p;
}

int main()
{
	char* p = "ghijklnmopqrst";
	char arr[20] = { 0 };

	int ret = my_strlen(p);
	my_strcpy(arr, p);

	printf("%d\n", ret);
	printf("%s", arr);
	return 0;
}